using Framework;
using Framework.Event;


namespace Game
{
    [Event(GlobalEventType.LoginFinish)]
    public class LoginFinish_ChangeScene : BaseEvent
    {
        public override void Run()
        {
            this.OpenMainPanel().Coroutine();
        }

        public async FVoid OpenMainPanel()
        {
            await GameEntry.UI.OpenUI(AssetUtility.GetUIPath("Main/MainPanel"));
            GameEntry.UI.CloseUI(typeof(LoginPanel));
        }
    }
}